home *** CD-ROM | disk | FTP | other *** search
- <IMG "FTLLOGO.BMP">
-
- Welcome to the FTL 2.1 Demo!
-
- This file explains the features of the FTL 2.1 Hypertext/ Hypermedia components
-
- <IMG "DELLOGO.BMP"> <IMG "S_CIUPKC.BMP">
-
- for Borland Delphi from C.I.U.P.K.C. Software.
-
- <IMG "HLINE.BMP">
-
- HTDisplayBox Component
-
- This component supports display of effectively unlimited levels of
- hypertext and hypermedia. It has the following Interface declaration:
-
- THTDisplayBox = class( TScrollBox )
- private
- { private data and methods }
- FOnAssertShowCoolLine : TStringEvent;
- FOnAssertShowHotLine : TStringEvent;
- FOnAssertShowCoolImage : TImageEvent;
- FOnAssertShowHotImage : TImageEvent;
- FOnHandleShowCoolLine : TStringEvent;
- FOnHandleShowHotLine : TStringEvent;
- FOnHandleShowCoolImage : TImageEvent;
- FOnHandleShowHotImage : TImageEvent;
- FOnAssertShowMatchFound : TMatchEvent;
- FOnHandleShowMatchFound : TMatchEvent;
- FOnCurrentCoolClick : TMouseEvent;
- FOnCurrentHotClick : TMouseEvent;
- FOnAssertLocalJump : TStringEvent;
- FOnHandleLocalJump : TStringEvent;
- FOnAssertPlayWaveFile : TStringEvent;
- FOnAssertPlayAVIFile : TStringEvent;
- FOnAssertPlayMidiFile : TStringEvent;
- FOnAssertNewHTFile : TStringEvent;
- FOnHandlePlayWaveFile : TStringEvent;
- FOnHandlePlayAVIFile: TStringEvent;
- FOnHandlePlayMidiFile: TStringEvent;
- FOnHandleNewHTFile : TStringEvent;
- FCoolFont : TFont;
- FHotFont : TFont;
- DoHistory : Boolean;
- MaxHistory : Integer;
- FShowToolBar : Boolean;
- public
- { public data and methods }
- MyID : integer;
- NeedsBooting : Boolean;
- CumulativePixelCount : Integer;
- TotalHistoryItems : Integer;
- MyMemo : Tmemo;
- CurrentFileName : TFilename;
- TheHistoryList : TStringList;
- CurrentMode : THTDBMode;
- CurrentCoolFontColor : Integer;
- DoHTOnStartup : Boolean;
- CurrentCoolFontName : String;
- CurrentCoolFontSize : Integer;
- CurrentCoolFontStyle : TFontStyles;
- CurrentCoolBGColor : TColor;
- CurrentHotFontColor : Integer;
- CurrentHotFontName : String;
- CurrentHotFontSize : Integer;
- CurrentHotFontStyle : TFontStyles;
- CurrentHotBGColor : TColor;
- CurrentYPosition : Integer;
- CurrentXPosition : Integer;
- PixelsPerLine : Integer;
- CurrentLeftMargin,
- CurrentRightmargin : Integer;
- CurrentHotCursor,
- CurrentCoolCursor : TCursor;
- TheHTParser : THyperTextParser;
- CurrentLineIncrement : Integer;
- CurrentLineSpacing : Integer;
- WrapDisplay : Boolean;
- GlobalREXPFilename : TFileName;
- procedure SetCoolFont( Value : TFont );
- procedure SetHotFont( Value : TFont );
- procedure SetCoolColor( Value : TColor );
- procedure SetHotColor( Value : TColor );
- procedure Flipmode;
- procedure PrintHyperText;
- procedure SetDoHTOnStartup( Value : Boolean );
- constructor Create( AOwner : TComponent ); override;
- function AssertShowCoolLine( var TheCoolLine : String ) : Boolean;
- procedure HandleShowCoolLine( var TheCoolLine : String ); virtual;
- function AssertShowHotLine( var TheHotLine : String; TheHTID : Integer ) : Boolean;
- procedure HandleShowHotLine( var TheHotLine : String; TheHTID : Integer ); virtual;
- function AssertShowCoolImage( TheCoolImage : TImage ) : Boolean;
- procedure HandleShowCoolImage( TheCoolImage : TImage ); virtual;
- function AssertShowHotImage( TheHotImage : TImage; TheHTID : Integer;
- AnchorTarget : boolean ) : Boolean;
- procedure HandleShowHotImage( TheHotImage : TImage; TheHTID : Integer;
- AnchorTarget : boolean ); virtual;
- procedure CurrentHotClick( Sender : TObject;
- Button: TMouseButton;
- Shift: TShiftState;
- X, Y: Integer ); virtual;
- procedure CurrentCoolClick( Sender : TObject;
- Button: TMouseButton;
- Shift: TShiftState;
- X, Y: Integer ); virtual;
- function AssertLocalJump( TheLocalID : Integer ): Boolean;
- procedure HandleLocalJump( TheLocalID : Integer ); virtual;
- function AssertPlayWaveFile( TheFileName : String ): Boolean;
- function AssertPlayAVIFile( TheFileName : String ): Boolean;
- function AssertPlayMidiFile( TheFileName : String ): Boolean;
- procedure HandlePlayWaveFile( TheFileName : String ); virtual;
- procedure HandlePlayAVIFile( TheFileName : String ); virtual;
- procedure HandlePlayMidiFile( TheFileName : String ); virtual;
- function AssertNewHTFile( TheFileName : String; AnID : integer ): Boolean;
- procedure HandleNewHTFile( TheFilename : String; CurrentID : integer ); virtual;
- procedure NewHyperTextFile( TheFileName : String ); virtual;
- procedure Initialize;
- procedure Bootstrap;
- procedure SetCurrentLineIncrement( Value : Integer );
- published
- property CoolFont : TFont read FCoolFont
- write SetCoolFont;
- property HotFont : TFont read FHotFont
- write SetHotFont;
- property TheCurrentCoolBGColor : TColor read CurrentCoolBGColor
- write SetCoolCOlor;
- property TheCurrentHotBGColor : TColor read CurrentHotBGColor
- write SetHotCOlor;
- property HyperTextParser : THyperTextParser read TheHTParser
- write TheHTParser;
- property TheCurrentLeftMargin : Integer read CurrentLeftmargin
- write CurrentLeftMargin;
- property TheCurrentRightMargin : Integer read CurrentRightMargin
- write CurrentRightMargin;
- property TheCurrentHotCursor : TCursor read CurrentHotCursor
- write CurrentHotCursor default crHotHand;
- property TheCurrentCoolCursor : TCursor read CurrentCoolCursor
- write CurrentCoolCursor default crDefault;
- property TheCurrentLineIncrement : Integer read CurrentLineIncrement
- write CurrentLineIncrement;
- property TheCurrentLineSpacing : Integer read CurrentLineSpacing
- write CurrentLineSpacing;
- property TheActiveMemo : TMemo read MyMemo write MyMemo;
- property TheCurrentFilename : TFilename read CurrentFileName write CurrentFileName;
- property DisplayMode : THTDBMode read CurrentMode write CurrentMode;
- property LoadHyperTextOnStartup : Boolean read DoHTOnStartup
- write SetDoHTOnStartup default false;
- property UseHistoryList : Boolean read DoHistory write DoHistory;
- property ShowToolBar : Boolean read FShowToolBar write FShowtoolBar default false;
- property MaximumHistoryItems : Integer read MaxHistory write MaxHistory default 255;
- property WrapHyperTextDisplayLines : Boolean read WrapDisplay write WrapDisplay;
- property OnAssertShowCoolLine : TStringEvent read FOnAssertShowCoolLine
- write FOnAssertShowCoolLine;
- property OnAssertShowHotLine : TStringEvent read FOnAssertShowHotLine
- write FOnAssertShowHotLine;
- property OnAssertShowCoolImage : TImageEvent read FOnAssertShowCoolImage
- write FOnAssertShowCoolImage;
- property OnAssertShowHotImage : TImageEvent read FOnAssertShowHotImage
- write FOnAssertShowHotImage;
- property OnHandleShowCoolLine : TStringEvent read FOnHandleShowCoolLine
- write FOnHandleShowCoolLine;
- property OnHandleShowHotLine : TStringEvent read FOnHandleShowHotLine
- write FOnHandleShowHotLine;
- property OnHandleShowCoolImage : TImageEvent read FOnHandleShowCoolImage
- write FOnHandleShowCoolImage;
- property OnHandleShowHotImage : TImageEvent read FOnHandleShowHotImage
- write FOnHandleShowHotImage;
- property OnCurrentCoolClick : TMouseEvent read FOnCurrentCoolClick
- write FOnCurrentCoolClick;
- property OnCurrentHotClick : TMouseEvent read FOnCurrentHotClick
- write FOnCurrentHotClick;
- property OnAssertLocalJump : TStringEvent read FOnAssertlocalJump
- write FOnAssertLocalJump;
- property OnHandleLocalJump : TStringEvent read FOnHandleLocalJump
- write FOnHandleLocalJump;
- property OnAssertPlayWaveFile : TStringEvent read FOnAssertPlayWaveFile
- write FOnAssertPlayWaveFile;
- property OnAssertPlayAVIFile : TStringEvent read FOnAssertPlayAVIFile
- write FOnAssertPlayAVIFile;
- property OnAssertPlayMidiFile : TStringEvent read FOnAssertPlayMidiFile
- write FOnAssertPlayMidiFile;
- property OnAssertNewHTFile : TStringEvent read FOnAssertNewHTFile
- write FOnAssertnewHTFile;
- property OnHandlePlayWaveFile : TStringEvent read FOnHandlePlayWaveFile
- write FOnHandlePlayWaveFile;
- property OnHandlePlayAVIFile: TStringEvent read FOnHandlePlayAVIFIle
- write FOnHandlePlayAVIFile;
- property OnHandlePlayMidiFile: TStringEvent read FOnHandlePlayMidiFile
- write FOnHandlePlayMidiFile;
- property OnHandleNewHTFile : TStringEvent read FOnHandleNewHTFile
- write FOnHandleNewHTFile;
- end;
-
-
- <IMG "WAVELINE.BMP">
-
- <A HREF="DEMO1.DHT">Click here</A> to return to the main demo file.
-
-